package com.xsd.vistor.kpiDemo;

import java.util.Random;

/**
 * @Description: 经理
 * @Author: zhoufuzong
 * @Created: 2021-03-11 20:54:11
 * @Version: 1.1.0
 */

public class Manager extends Staff {
    public Manager(String name) {
        super(name);
    }

    @Override
    public void accept(Vistor vistor) {
        vistor.visit(this);
    }

    public int getProducts(){
        return  new Random().nextInt(10);
    }
}
